/**
 * Created by yuris on 30.12.14.
 */
package signals {
import org.osflash.signals.ISlot;
import org.osflash.signals.Signal;

public class UpdateDataSignal extends Signal {
    public function UpdateDataSignal() {
        super(String, Object);
    }

    override public function add(listener:Function):ISlot {
        if(listener.length != 2){
            throw new Error("UpdateDataSignal: listener function must have 2 parameters");
        }
        return super.add(listener);
    }

    public function sendSignal(command:String, data:Object):void {
        super.dispatch(command, data)
    }
}
}
